import React, { lazy } from "react";
// import intl from "react-intl-universal";
import { Redirect } from "react-router-dom";  

const Home = lazy(() => import("./../pages/Home")); //首页 


const setTitle = title => {
    document.title = title;
};
const routes = [
    {
        path: "/",
        exact: true,
        render: () => <Redirect to="/Home"/>
    },
    {
        path: "/Home",
        name: "Home",
        component: Home,
        children: [
            {
                path: "/Home",
                exact: true,
                render: () => <Redirect to="/Home" />
            } 
        ]
    }, 
];
export default routes;
